# a1 = [['name','tom'],['age',34],['sex','女']]
# a=dict(a1)
# print(a)
# b=dict(语文 = 56,数学 = 89,英语 = 45)
# print(b)
# c={'语文': 56, '3': 89, '英语': 45}
# print(c)
#
# d=[]
# d1=dict(d)
# print(d1)
#
# b['化学']=78
# print(b)
# b['化学']=42
# print(b)
# del b['化学']
# print(b)
# f=b.pop('语文')
# print(f)
# print(b)
# b.clear()
# print(b)
e={'语文': 56, '3': 89, '英语': 45}

value1=e['语文']
print(value1)
value=e.get('语文')
print(value)
g=e.keys()
print(list(g))
k=e.values()
print(list(k))
q = e.items()
print(q)
for k in e: #直接遍历字典对象，k代表key
    print(f"{k}--》{e.get(k)}")
for v in e.values():
    print(v)
for k,v in e.items():
    print(f"{k}-->{v}")